package com.team6.cet.serviceimpl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.team6.cet.entity.Admin;
import com.team6.cet.mapper.AdminDao;
import com.team6.cet.service.AdminService;
 
@Service
public class AdminServiceImpl implements AdminService{

	@Autowired
	public AdminDao admindao;
	@Override
	public int delById(Integer id) {
		return admindao.delById(id);
	}

	@Override
	public int save(Admin record) {
		return admindao.save(record);
	}

	@Override
	public Admin getById(Integer id) {
		return admindao.getById(id);
	}
	@Override
	public int editById(Admin record) {
		return admindao.editById(record);
	}

	@Override
	public Admin getByname(String name) {
		// TODO Auto-generated method stub
		return admindao.getByname(name);
	}

	@Override
	public Admin getnamepassword(String name, String password) {
		// TODO Auto-generated method stub
		return admindao.getnamepassword(name, password);
	}
}
